package org.ssmd3.dao;

import org.springframework.stereotype.Repository;
import org.ssmd3.pojo.NewsType;

import java.util.List;
@Repository("newsTypeMapper")
public interface NewsTypeMapper {

    int save(NewsType newsType);
    int update(NewsType newsType);
    NewsType getOneNewsType(int id);

    int getRecordCount(NewsType newsType);
    List<NewsType> getNewsTypeListByPage(NewsType newsType);
    List<NewsType> getTopNewsTypeList();
    List<NewsType> getAllNewsTypeList();

    int delete(int id);
    int deleteAll(String[] ids);
}